package com.sunshine.ssm.test;

/**
 * @Description:
 * @author: Hong.Wei
 * @Date: 2017/2/7 14:39
 */
class SupperClass {
    SupperClass() {
        test();
    }

    private void test() {
        System.out.println("Suppper test");
    }


}

public class ChildClass extends SupperClass {

    ChildClass() {
        test();
    }

    public void test() {
        System.out.println("Child test");
    }

    public static void main(String[] args) {
        SupperClass a = new ChildClass();
    }
}
